/**
 * select：下拉菜单
 * type：类型
 * table：表
 * hide：是否隐藏
 * class：类
 * depend: 依赖某个column
 */
const companyTable = {
  industry: {
    name: "工商注册",
    value: "industry",
    id: 0,
    column: [
      {
        field: "qyyxmc",
        title: "企业预选名称",
        minWidth: 300,
        titleAlign: "center",
        isResize: true,
        columnAlign: "center",
        class: "is-long",
        notes: "至少三个，用逗号隔开，按照顺序进行核名"
      },
      {
        field: "jycs",
        title: "经营地址",
        minWidth: 200,
        class: "is-long",
        file: {
          name: "租聘合同或房产证"
        }
      },
      {
        field: "jycs",
        title: "房屋权属",
        tableHide: true,
        select: [
          {
            name: "租赁",
            value: "zp"
          },
          {
            name: "自有产权",
            value: "zycq"
          },
          {
            name: "无偿使用",
            value: "wcsy"
          }
        ],
        class: "is-long",
        notes: "租聘需提供房产证和租聘协议，无偿使用需要提供证明"
      },
      {
        field: "zczj",
        title: "注册资金（万元）",
        minWidth: 200,
        titleAlign: "center",
        isResize: true,
        columnAlign: "center"
      },
      {
        field: "qyfr",
        title: "企业法人姓名",
        minWidth: 150,
        titleAlign: "center",
        isResize: true,
        columnAlign: "center"
      },
      {
        field: "sfzhm",
        title: "法人身份证号码",
        minWidth: 200
      },
      {
        field: "yddh",
        title: "法人移动电话",
        minWidth: 150,
        titleAlign: "center",
        isResize: true,
        columnAlign: "center"
      },
      {
        field: "qyfr",
        title: "执行董事姓名",
        tableHide: true,
        titleAlign: "center",
        class: "is-long",
        isResize: true,
        columnAlign: "center",
        notes: "执行董事可与法人相同"
      },
      {
        field: "sfzhm",
        title: "执行董事身份证号码",
        tableHide: true
      },
      {
        field: "jsxm",
        title: "监事人姓名",
        class: "is-long",
        tableHide: true,
        notes: "监事人必须与法人不是同一人"
      },
      {
        field: "jsrsfzhm",
        title: "监事人身份证号码",
        class: "is-long",
        tableHide: true
      },
      {
        field: "jyfw",
        title: "经营范围",
        tableHide: true
      },
      {
        field: "gqbl",
        title: "股权比例",
        notes: "如果法人独资则写，100%",
        class: "table",
        tableHide: true,
        table: {
          btn: "增加股东"
        }
      },
      {
        field: "custome-adv",
        title: "操作",
        hide: true,
        minWidth: 300,
        titleAlign: "center",
        columnAlign: "center",
        componentName: "common-operation",
        isResize: true
      }
    ]
  },
  seal: {
    name: "刻印公章",
    value: "seal",
    id: 1,
    column: [
      {
        field: "gzlx",
        title: "是否需要合同章",
        minWidth: 150,
        titleAlign: "center",
        isResize: true,
        columnAlign: "center",
        select: [
          {
            name: "是",
            value: true
          },
          {
            name: "否",
            value: false
          }
        ]
      },
      {
        field: "bz",
        title: "备注",
        minWidth: 100,
        type: "textrea",
        titleAlign: "center",
        isResize: true,
        columnAlign: "center",
        notes: "如果联系方式改变或者有其他建议请备注"
      },
      {
        field: "custome-adv",
        title: "操作",
        hide: true,
        minWidth: 200,
        titleAlign: "center",
        columnAlign: "center",
        componentName: "common-operation",
        isResize: true
      }
    ]
  },
  bank: {
    name: "银行开户",
    value: "bank",
    id: 2,
    column: [
      {
        field: "gmtModified",
        title: "预约日期",
        minWidth: 150,
        titleAlign: "center",
        isResize: true,
        type: "date",
        columnAlign: "center",
        formatter: (rowData) => {
          const date = new Date(rowData.gmtModified);
          return `<span>${date.getFullYear()}年${date.getMonth() +
            1}月${date.getDate()}日</span>`;
        }
      },
      {
        field: "bz",
        title: "备注",
        minWidth: 100,
        type: "textrea",
        titleAlign: "center",
        isResize: true,
        columnAlign: "center",
        notes: "如果联系方式改变或者有其他建议请备注"
      },
      {
        field: "custome-adv",
        title: "操作",
        hide: true,
        minWidth: 200,
        titleAlign: "center",
        columnAlign: "center",
        componentName: "common-operation",
        isResize: true
      }
    ]
  },
  taxation: {
    name: "税务登记",
    value: "taxation",
    id: 3,
    column: [
      {
        field: "zh",
        title: "从业人数",
        tableHide: true,
      },
      {
        field: "khyh",
        title: "开户银行名称",
        minWidth: 100,
        titleAlign: "center",
        isResize: true,
        columnAlign: "center"
      },
      {
        field: "zh",
        title: "银行账号",
        minWidth: 100
      },
      {
        field: "zh",
        title: "开户日期",
        type: "date",
        minWidth: 100
      },
      {
        field: "zh",
        title: "企业规模",
        tableHide: true,
        select: [
          {
            name: "小规模企业",
            value: "zzsptfp"
          },
          {
            name: "一般纳税人",
            value: "zzszyfp"
          }
        ]
      },
      {
        field: "pzhd",
        title: "票种核定",
        minWidth: 100,
        select: [
          {
            name: "增值税普通发票",
            value: "zzsptfp"
          },
          {
            name: "增值税专用发票",
            value: "zzszyfp"
          }
        ]
      },
      {
        field: "zh",
        title: "预约日期信息采集",
        type: "date",
        minWidth: 100
      },
      {
        field: "custome-adv",
        title: "操作",
        hide: true,
        minWidth: 200,
        titleAlign: "center",
        columnAlign: "center",
        componentName: "common-operation",
        isResize: true
      }
    ]
  },
  social: {
    name: "社保开户",
    value: "social",
    id: 4,
    column: [
      {
        field: "sqrq",
        title: "预约日期",
        type: "date",
        minWidth: 150,
        titleAlign: "center",
        isResize: true,
        columnAlign: "center",
        formatter: (rowData, i) => {
          const date = new Date(rowData.sqrq);
          return `<span>${date.getFullYear()}年${date.getMonth() +
            1}月${date.getDate()}日</span>`;
        }
      },
      {
        field: "custome-adv",
        title: "操作",
        hide: true,
        minWidth: 200,
        titleAlign: "center",
        columnAlign: "center",
        componentName: "common-operation",
        isResize: true
      }
    ]
  }
};
export { companyTable };
